package com.liao.myblog.dao;

import com.liao.myblog.pojo.Comment;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

@Mapper
@Repository
public interface CommentMapper {

    List<Comment> queryCommentByBlogId(int blogId);

    int checkComment(int[] id);

    int deleteComment(int[] ids);

    int replyComment(Comment comment);

    List<Comment> queryCommentList();

    int queryCommentCount();

    int queryCommentCountByBlogId(int blogId);

    List<Comment> queryCommentByPage(int limit, int offset, int blog_id);

    int addComment(Comment comment);
}
